package com.ywgt.functioninterface;

import java.util.function.Supplier;

public class SupplierTest {
    public static void main(String[] args) {
        Supplier<Integer> supplier=new Supplier<Integer>() {
            @Override
            public Integer get() {
                return 1024;
            }
        };
        Supplier sup=()->{return 1024;};

        System.out.println(sup.get());
    }
}
